all:TcpServer TcpClient UdpServer UdpClient

UdpServer:UdpServer.c 
	gcc -o $@ $^

UdpClient:UdpClient.c 
	gcc -o $@ $^

TcpServer:TcpServer.c
	gcc -o $@ $^ -lpthread

TcpClient:TcpClient.c 	
	gcc -o $@ $^

.PHONY:clean
clean:
	rm -rf TcpServer TcpClient UdpServer UdpClient